FENNEL = /usr/local/bin/fennel
PG = lua pg.lua
CSS-FILE = main.2.css

all: pg.lua assets main-pages articles
.PHONY: all

assets: img styles
	cp -r styles img www/
	mv www/styles/main.css www/styles/$(CSS-FILE)

pg.lua: pg.fnl
	$(FENNEL) --compile pg.fnl > pg.lua

main-pages:
	$(MAKE) -C org

articles:
	$(MAKE) -C org/articles/

init:
	mkdir ./www
	mkdir ./www/articles

clean:
	rm -rf ./www
